home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-01-12 | 1.4 KB | 44 lines | [TEXT/ToyS] |
- property fmpDialog : {bounds:[10, 40, 102, 80], contents:[¬
- {class:icon push button, bounds:[2, 2, 24, 24], contents:1000, style:9}, ¬
- {class:icon push button, bounds:[24, 2, 46, 24], contents:1001, style:9}, ¬
- {class:icon push button, bounds:[46, 2, 68, 24], contents:1002, style:9}, ¬
- {class:icon push button, bounds:[68, 2, 90, 24], contents:1003, style:9}, ¬
- {class:static text, bounds:[0, 26, 92, 38], justification:center} ¬
- ], name:"Browser", style:standard palette, closeable:true}
- dd install with fonts {name:"Geneva", size:9} float above application "FileMaker Pro" with grayscale
- try
- local i
- dd make dialog fmpDialog
- try
- tell application "FileMaker Pro"
- activate
- get (current record's cell "Index" as text) & " of " & (count records)
- end tell
- dd set contents of item 5 of dialog 1 to result
- on error
- end try
- repeat
- try
- set i to dd interact with user for max ticks 60
- tell application "FileMaker Pro"
- if i = 1 then
- go to record 1
- else if i = 2 then
- go to record before current record
- else if i = 3 then
- go to record after current record
- else if i = 4 then
- go to record -1
- else if i = -1 then
- exit repeat
- end if
- get (current record's cell "Index" as text) & " of " & (count records)
- end tell
- dd set contents of item 5 of dialog 1 to result
- on error
- dd set contents of item 5 of dialog 1 to ""
- end try
- end repeat
- on error
- end try
- dd uninstall